import request from '@/utils/request';

// 得到待处理安全质量数
export function getWaitHandleCountData() {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/getMyDeptWaitHandleCount`,
    method: 'get'
  });
}

// 统计各单位下的安全天信息以及安全质量管理信息
export function getSafeQualityDataList() {
  return request({
    url: `/jjxt/bureauSafeQualityInfo/getSafeDayAndDeptSafeQualityInfo`,
    method: 'get'
  });
}

// 获取各个承办科室的待办数量
export function getAdvanceDeptCountData(params) {
  return request({
    url: `/jjxt/bureauWorkDealtUndertake/getEveryAdvanceDeptCount`,
    method: 'get',
    params
  });
}

// 统计当前登入用户所在部门的待处理的安全质量条数
export function getDeptWorkDealtCountDataList() {
  return request({
    url: `/jjxt/bureauWorkDealtUndertake/getMyDeptWorkDealtCount`,
    method: 'get'
  });
}
